//
//  AboutUsViewController.m
//  LiWuShuo
//
//  Created by 袁小航 on 14/11/25.
//  Copyright (c) 2014年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "AboutUsViewController.h"
#import "Define.h"

@interface AboutUsViewController ()

@end

@implementation AboutUsViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.navigationController.navigationBar.tintColor = [UIColor whiteColor];
    self.view.backgroundColor = [UIColor whiteColor];
    
    UILabel * usTitle = [[UILabel alloc]init];
    usTitle.text = @"关于";
    usTitle.textColor = [UIColor whiteColor];
    usTitle.font = [UIFont systemFontOfSize:16];
    usTitle.frame = CGRectMake(0, 0, 40, 30);
    self.navigationItem.titleView = usTitle;
    
    // 创建显示图标图片
    UIImageView *iconImage = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, 80, 80)];
    [iconImage setImage:[UIImage imageNamed:@"AppIcon120x120.png"]];
    iconImage.center = self.view.center;
    iconImage.layer.cornerRadius = 10;
    iconImage.layer.masksToBounds = YES;
    [self.view addSubview:iconImage];
    
    // 版本
    UILabel *version = [[UILabel alloc]initWithFrame:CGRectMake(iconImage.frame.origin.x, iconImage.frame.origin.y + iconImage.frame.size.height, iconImage.frame.size.width, 30)];
    version.text = @"v1.0";
    version.textAlignment = YES;
    version.font = [UIFont systemFontOfSize:17];
    version.textColor = [UIColor lightGrayColor];
    [self.view addSubview:version];
    
    // 爱优礼物介绍
    UILabel *intro = [[UILabel alloc]initWithFrame:CGRectMake(40, 40, MAIN_SCREEN_WIDTH - (40 * 2), 160)];
    intro.text = @"爱优礼物是一款供您浏览、购买优质礼物的产品。意在提供高品质的礼物攻略，帮助用户给恋人、家人、朋友、同事制造生日、节日、纪念日惊喜。此外，我们可以让您实现本地收藏、复制链接等功能，为用户提供丰富的送礼方案。";
    intro.textColor = [UIColor grayColor];
    intro.numberOfLines = 7;
    intro.font = [UIFont systemFontOfSize:14];
    [self.view addSubview:intro];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
